<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition template="./Test.xhtml">



            <ui:define name="content">
               
                    <fieldset style="height: 300px">
                        <legend><b>Update Category</b></legend>
                      

                            <table width="457" height="190" border="0">
                                <tr>
                                    <td><b>Category Name * </b></td>
                                    <td><p:inputText value="#{categoryBean.selectCat.categoryName}" id="txtName" required="true" requiredMessage="Category name is not null">
                                            <f:validator validatorId="Validator.CheckValidator"/></p:inputText>
                                    </td>
                                    <td><p:message for="txtName"/></td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <h:commandButton  actionListener="#{categoryBean.updateCategory}" action="Category" type="image" image="../resources/images/forms/form_submit.gif"/>
                                           
                                        <h:commandButton  action="Category" type="image" image="../resources/images/forms/form_reset.gif"/>
                                    </td>
                                    <td></td>
                                </tr>
                            </table>
                      
                    </fieldset>
               
            </ui:define>


        </ui:composition>

    </body>
</html>
